from DrissionPage import Chromium
from DrissionPage._pages.chromium_page import ChromiumPage
from DrissionPage.common import Actions

import time

import requests

# page = ChromiumPage()
# ac = Actions(page)
# page.get("https://www.xiaohongshu.com/explore")
# for i in range(5):
#     time.sleep(1.2)
#     ac.scroll(delta_y=1500)

res = requests.get("https://bkimg.cdn.bcebos.com/pic/359b033b5bb5c9ea15ce8e175360a1003af33b8715b7?x-bce-process=image/format,f_auto/quality,Q_70/resize,m_lfit,limit_1,w_536")
with open("img/" + 'demo.jpg', 'wb') as f:
    f.write(res.content)